<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/5/11
  Time: 14:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        td{
            border: 2px solid  deepskyblue;
        }
    </style>
</head>
<body>
<table>
    
<h3>雨量监测信息</h3>
    <tr>
        <td>序号</td>
        <td>区域名称</td>
        <td>监测时间</td>
        <td>雨量值</td>
        <td>监测站</td>
        <td>站点地址</td>
        <td>操作</td>
        <td>操作</td>
    </tr>

    <c:forEach items="${list}" var="emp" varStatus="bs">
        <tr <c:if test="${bs.count%2==0}">bgcolor="aqua" </c:if>  bgcolor="#ffebcd">
    <td>${emp.id}</td>
    <td>${emp.districtName}</td>
    <td>${emp.monitorTime}</td>
    <td>${emp.rain}</td>
    <td>${emp.monitoringStation}</td>
    <td>${emp.monitoringAddress}</td>
    <td><a href="update.jsp?id=${emp.id}">修改</a></td>
    <td><a href="/sc?id=${emp.id}">删除</a></td>
    </tr>
    </c:forEach>
    <a href="xz.jsp">新增雨量信息</a>
</table>

</body>
</html>
